﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProcessList.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.Proj5715.Process.ProcessList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript">
        function showPage(url,width,height) {
            window.showModalDialog(encodeURI(url), "", "dialogWidth=" + width + ";dialogHeight=" + height);
        }
    </script>  
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <div style="margin:10px 10px;">
        派工单号：<asp:Label ID="lbl_DispatchCode" runat="server" Font-Bold="True" ForeColor="#009900"></asp:Label>
            &nbsp; 修理类型：<asp:Label ID="lbl_RepairType" runat="server" Font-Bold="True" ForeColor="#009900"></asp:Label>
            &nbsp;剩余寿命：<asp:Label ID="lbl_RemainingLife" runat="server" Font-Bold="True" ForeColor="#009900"></asp:Label>
            &nbsp;计划完工时间：<asp:Label ID="lbl_planCompleteTime" runat="server" Font-Bold="True" ForeColor="#009900"></asp:Label>
            &nbsp;弹号：<asp:Label ID="lbl_MissileCode" runat="server" Font-Bold="True" ForeColor="#009900"></asp:Label>
    </div>

    <div style="text-align:right">
        <asp:Button ID="btn_back" runat="server" onclick="btn_back_Click" Text="返回" Height="25px" Width="100px" />
        <asp:Button ID="btnAddNext" Text="添加下一工序" runat="server" Height="25px" 
            onclick="btnAddNext_Click"/>
    </div>

    <div>
            <asp:GridView ID="grv" runat="server" AutoGenerateColumns="False" 
                CellPadding="4" DataKeyNames="DispatchMissileProcessID, ProcessSortNumber, DeptID"
                Font-Size="9pt" ForeColor="#333333" GridLines="Both" Width="100%" 
                onrowcommand="grv_RowCommand" onrowdatabound="grv_RowDataBound">
                
                <Columns>
                    <asp:BoundField HeaderText="序号" DataField="ProcessSortNumber" ItemStyle-Width="30px"/>
                    <asp:BoundField HeaderText="舱段" DataField="ProcessName"/>
                    <asp:BoundField HeaderText="部门" DataField="DeptName"/>
                    <asp:BoundField HeaderText="领修时间" DataField="BeginRepairDate" ItemStyle-Width="100px" />
                    <asp:BoundField HeaderText="舱段编号" DataField="SectionCode"/>
                    <asp:BoundField HeaderText="故障" DataField="IsFault" ItemStyle-Width="30px" />                    
                    <asp:BoundField HeaderText="串件" DataField="" ItemStyle-Width="30px" />
                    <asp:BoundField HeaderText="损耗" DataField="" ItemStyle-Width="30px"/>
                    <asp:BoundField HeaderText="完工" DataField="IsCompleted" ItemStyle-Width="30px" />
                    <asp:BoundField HeaderText="完工时间" DataField="CompletionDate"  ItemStyle-Width="100px"/>
                    <asp:BoundField HeaderText="检验结果" DataField="InspectionState"  ItemStyle-Width="60px"/>
                    <asp:BoundField HeaderText="不合格类型" DataField="UnqualifiedType" ItemStyle-Width="80px"/>
                    <asp:TemplateField HeaderText="操作" ItemStyle-Width="200px">
                        <ItemTemplate>
                            <asp:Button ID="btnDelete" Text="删除" runat="server" Height="18px" CommandName="btnDelete" OnClientClick="return confirm('您确定要删除该工序吗？');" CommandArgument='<%# Eval("DispatchMissileProcessID")%>'/>
                            <asp:Button ID="btnBeginRepair" Text="领修" runat="server" Height="18px" CommandName="BeginRepair" />
                            <asp:Button ID="btnFault" Text="故障" runat="server" Height="18px" CommandName="Fault" />
                            <asp:Button ID="btnExchange" Text="串件" runat="server" Height="18px" CommandName="Exchange" />
                            <asp:Button ID="btnWastage" Text="损耗" runat="server" Height="18px" CommandName="Wastage" />
                            <asp:Button ID="btnComplete" Text="完工" runat="server" OnClientClick="return confirm('您确定该工序已完成吗？确定后数据将不可修改。');" CommandName="Complete"  CommandArgument='<%# Eval("DispatchMissileProcessID")%>' Height="18px"/>
                            <asp:Button ID="btnCheck" Text="检验" runat="server" Height="18px" CommandName="Check"/>                            
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="#DFE8F6" Font-Bold="True" ForeColor="#333333" Height="20px"  HorizontalAlign="Center"  />
                <RowStyle BackColor="#FAFAFA" ForeColor="#333333" Height="20px" HorizontalAlign="Center" />
                <EmptyDataTemplate>
                    <div style="text-align: center; margin-top: 20px; margin-bottom: 20px;">
                        当前没有任何数据。</div>
                </EmptyDataTemplate>
            </asp:GridView>
        </div>
    </form>
</body>
</html>
